import Vue from 'vue'
// import asios from '@/plugins/axios'

// 配置管理
/**
 * @param {*} data
 */
export function axiosGetConfig (data) {
  return Vue.axios({
    url: '/nfom/v1.0/config/get',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}

export function axiosSetConfig (data) {
  return Vue.axios({
    url: '/nfom/v1.0/config/set',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}

export function axiosGetHardwareLoad (data) {
  return Vue.axios({
    url: '/nfom/v1.0/load/hardwareload',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}

export function axiosGetSessionsLoad (data) {
  return Vue.axios({
    url: '/nfom/v1.0/load/sessionsload',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}

export function axiosGetTrafficLoad (data) {
  return Vue.axios({
    url: '/nfom/v1.0/load/trafficload',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}

export function axiosSetConfigApply (data) {
  return Vue.axios({
    url: '/nfom/v1.0/config/apply',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
  })
}
